package com.graduation.project.enums;

/**
 * @author 卑微小峰
 * @date 2022/9/11
 */
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    FILED(400, "失败")
    ;

    /**
     * 枚举值
     */
    private Integer code;

    /**
     *枚举描述
     */
    private String msg;

    ResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
